<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="{:U($Think.ACTION_NAME)}" method="post">
        <input type="hidden" name="pageSize" value="{$Think.session.pageSize}">
        <input type="hidden" name="pageCurrent" value="{$Think.session.pageCurrent}">
        <input type="hidden" name="orderField" value="{$Think.session.orderField}">
        <input type="hidden" name="orderDirection" value="{$Think.session.orderDirection}">
        <div class="bjui-searchBar">
            <label>发布时间：</label><input type="text" name="search[atime]" readonly="readonly" value="{$search.atime}" class="form-control" size="12" data-toggle="datepicker" />
            <label>标题：</label><input type="text" name="search[title]" value="{$search.title}" class="form-control" />
            <button type="submit" class="btn-default" data-icon="search">查询</button>
            <div class="pull-right">
                <a href="{:U('replist')}" class="btn btn-default" data-toggle="navtab" data-id="viewpoint-all-replist" data-reload-warn="本页已有打开的内容，确定将刷新本页内容，是否继续？" data-title="观点评论列表" title="点击查看观点评论列表" data-icon="reply">评论列表</a>
                <div class="btn-group">
                    <button type="button" class="btn-default dropdown-toggle" data-toggle="dropdown" data-icon="copy">功能操作<span class="caret"></span></button>
                    <ul class="dropdown-menu right" role="menu">
                        <li><a href="{:U('del')}" data-toggle="doajaxchecked" data-confirm-msg="确定要删除选中项吗？" data-idname="ids" data-group="ids"><i class="fa fa-times"></i> 删除数据</a></li>
                        <li><a href="{:U('stick')}" data-toggle="doajaxchecked" data-confirm-msg="确定要改变选中项的状态吗？" data-idname="ids" data-group="ids"><i class="fa fa-level-up"></i> 置顶</a></li>
                        <li><a href="{:U('change')}" data-toggle="doajaxchecked" data-confirm-msg="确定要改变选中的状态项吗？" data-idname="ids" data-group="ids"><i class="fa fa-check"></i> 审核</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </form>
</div>

<div class="bjui-pageContent">
    <!-- 内容区 -->
    <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
        <thead>
        <tr>
            <th>ID</th>
            <th>标题</th>
            <th>作者</th>
            <th>发布时间</th>
            <th title="点击变更状态">置顶</th>
            <th title="点击变更状态">状态</th>
            <th width="26"><input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck"></th>
            <th width="85">操作</th>
        </tr>
        </thead>
        <volist name="list" id="vo">
            <tr>
                <td>{$vo.id}</td>
                <td>{$vo.title}</td>
                <td>{$vo.author}</td>
                <td>{$vo.atime|date="Y-m-d H:i:s",###}</td>
                <td><a href="{:U('stick?id='.$vo[id])}" class="btn btn-default" data-toggle="doajax" data-confirm-msg="确定要<if condition="$vo[ishot]">取消置顶<else />置顶</if>该观点吗？"><if condition="$vo[ishot]">是<else />否</if></a></td>
                <td><a href="{:U('change?id='.$vo[id])}" class="btn btn-default" data-toggle="doajax" data-confirm-msg="确定要<if condition="$vo[status]">封锁<else />显示</if>该观点吗？"><if condition="$vo[status]">显示<else />未显示</if></a></td>
                <td><input type="checkbox" name="ids" data-toggle="icheck" value="<?= $vo[id]?>"></td>
                <td>
                    <a href="{:U('info?id=' . $vo[id])}" class="btn btn-default" data-toggle="navtab" data-id="viewpoint-info-id" data-reload-warn="本页已有打开的内容，确定将刷新本页内容，是否继续？" data-title="{$vo.title}-详情" title="点击查看-{$vo.title}-详情" data-icon="info"></a>
                    <a href="{:U('replist?id='.$vo[id])}" class="btn btn-default" data-toggle="navtab" data-id="viewpoint-replist" data-reload-warn="本页已有打开的内容，确定将刷新本页内容，是否继续？" data-title="{$vo.title}-评论列表" title="点击查看-{$vo.title}-评论列表" data-icon="reply"></a>
                    <a href="{:U('del?id=' . $vo[id])}" data-icon="times" title="删除内容" class="btn btn-red" data-toggle="doajax" data-confirm-msg="确定要删除选中项吗？" data-icon="times"></a>
                </td>
            </tr>
        </volist>
    </table>
</div>
<include file="./App/Common/View/Common/pageFooter.html" />